package com.tojabo.util;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class StringUtil {
	public static boolean isEmpty(String str) {
		return str == null || str.length() == 0;
	}

	public static boolean isNotEmpty(String str) {
		return !isEmpty(str);
	}

	public static boolean isBlank(String str) {
		int strLen;
		if (str == null || (strLen = str.length()) == 0)
			return true;
		for (int i = 0; i < strLen; i++)
			if (!Character.isWhitespace(str.charAt(i)))
				return false;

		return true;
	}

	public static boolean isNotBlank(String str) {
		return !isBlank(str);
	}
	
	public static int CharCount(String munStr,char sonStr) {
		int count = 0;
		for (int i = 0; i < munStr.length(); i++) {
			if (munStr.charAt(i) == sonStr) {
				count++;
			}
		}	
		return count;
	}
	
	public static void main(String[] args) {
				
	}
	
}
